﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Web
{
    public class ZSession
    {
        public static string ManagerUID
        {
            get
            {
                if (System.Web.HttpContext.Current.Session != null && System.Web.HttpContext.Current.Session["ManagerUID"] != null)
                {
                    return System.Web.HttpContext.Current.Session["ManagerUID"].ToString();
                }
                else
                {
                    return string.Empty;
                }
            }
            set
            {
                System.Web.HttpContext.Current.Session["ManagerUID"] = value;
            }
        }

        public static string MemberUID
        {
            get
            {
                if (System.Web.HttpContext.Current.Session != null && System.Web.HttpContext.Current.Session["member"] != null)
                {
                    return System.Web.HttpContext.Current.Session["member"].ToString();
                }
                else
                {
                    return string.Empty;
                }
            }
            set
            {
                System.Web.HttpContext.Current.Session["member"] = value;
            }
        }

        public static string ValidateCode
        {
            get
            {
                if (System.Web.HttpContext.Current.Session != null && System.Web.HttpContext.Current.Session["ValidateCode"] != null)
                {
                    return System.Web.HttpContext.Current.Session["ValidateCode"].ToString();
                }
                else
                {
                    return string.Empty;
                }
            }
            set
            {
                System.Web.HttpContext.Current.Session["ValidateCode"] = value;
            }
        }

    }
}
